package com.BigDate.server.service;

import com.BigDate.server.pojo.Experiment;
import com.BigDate.server.pojo.RespBean;
import com.BigDate.server.pojo.RespPageBean;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stx
 * @since 2021-12-26
 */
public interface IExperimentService extends IService<Experiment> {

    /**
     * 获取实验(分页)
     * @param currentPage
     * @param size
     * @param experiment
     * @return
     */
    RespPageBean getExpByPage(Integer currentPage, Integer size, Experiment experiment);

    /**
     * 获取内容
     * @param id
     * @return
     */
    String getContent(Integer id);

    List<Experiment> findLimitPr();

    List<Experiment> findLimitIt();

    List<Experiment> findLimitHi();

    Experiment findById(Integer id);

    /**
     *
     * @param expId
     * @param userId
     * @return
     */
    RespBean runPython(Integer expId, Integer userId);

    /**
     * 通过id获取实验
     * @param id
     * @return
     */
    List<Experiment> getExpByUserId(Integer id);


}
